Inside Macintosh: QuickTime

Previous | Chapter Top | Chapter Contents | Next

Error-Notification Functions

The Movie Toolbox lets your application perform custom error notification. Your application must identify its custom error-notification function to the Movie Toolbox. Error-notification functions are particularly helpful when you are debugging your program.

The SetMoviesErrorProc function (described on SetMoviesErrorProc ) allows you to identify your application's error-notification function in the errProc parameter.

MyErrProc

The entry point to your error-notification function should take the following form:

pascal void MyErrProc (OSErr theErr, long refcon);
theErr
Contains the result code that the Movie Toolbox is going to place in the current error value.
refcon
Contains the reference constant value that you specified when your application called the SetMoviesErrorProc function.

© 1997 Apple Computer, Inc.

Previous | Chapter Top | Chapter Contents | Next